<head>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
  <meta http-equiv="expires" content="0">
  <meta http-equiv="pragma" content="no-cache">
  <meta http-equiv="cache-control" content="no-cache">
  <title>{$typeinfo}</title>
  <meta content="{$history_article['title']}" name="keywords">
  <meta content="{$history_article['title']}" name="description">
  <link href="/assets/css/rest.css" type="text/css" rel="stylesheet">
  <link href="/assets/css/css.css" type="text/css" rel="stylesheet">
  <script type="text/javascript" src="/assets/js/jquery-1.9.1.min.js"></script>
  <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  <link href="/assets/css/article_at.css" type="text/css" rel="stylesheet">
  <style type="text/css">
  body{background-color: #fff;}
 iframe{width:100% !important;height:300px !important;}
 #PlayerCtrl{width:100%;height:300 !important;}
  
  </style>
  <script>
    $(function(){
      $(".article_content img").each(function(index, element){
        $(this).removeAttr("style");
        $(this).removeAttr("width");
        $(this).removeAttr("height");
      })
      $(".article_content *").each(function(index, element){
        $(this).css({"margin-bottom":"0px","margin-top":"0px","font-size":"16px","line-height":"28px"});
        if($(this).html() == '<br>'){
          $(this).remove();
        }
      })
    })
  </script>
 
</head>
<body>
<section class="wrap">
  <!--新增-->
  <div class="articles" style="margin-top:0px;">
    <div class="article_title">
      <h3>{$article['title']}</h3>
      <time>{$article['u_date']} {$co_gzh}</time>
    </div>
    <div class="articlevideo">{:W('Data/getvideo',array('str'=>$article['videopath']))}</div>
    <div class="article_content">
      {$article['content']}
    </div>
  </div>
</section>
<script type="text/javascript">
  wx.config({
    debug: false,
    appId: '{$signPackage.appId}',
    timestamp: '{$signPackage.timestamp}',
    nonceStr: '{$signPackage.nonceStr}',
    signature: '{$signPackage.signature}',
    jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage']
  });
  wx.ready(function () {
    // 1 判断当前版本是否支持指定 JS 接口，支持批量判断
    wx.checkJsApi({
      jsApiList: [
        'getNetworkType',
        'previewImage',
        'onMenuShareTimeline',
        'onMenuShareAppMessage',
        'onMenuShareQQ',
        'onMenuShareWeibo'
      ],
      success: function (res) {
        //alert(JSON.stringify(res));
      }
    });
    var shareData = {
              title: '{$article.title}',
              desc: '{$article.description}',
              link: '',
    imgUrl: '{:C('WEBSITE')}{$article['pic']}',
            trigger: function (res) {
      //alert('用户点击发送给朋友');
    },
    success: function (res) {
      //alert('已分享');
    },
    cancel: function (res) {
      //alert('已取消');
    },
    fail: function (res) {
      //alert(JSON.stringify(res));
    }
  };
    wx.onMenuShareAppMessage(shareData);
    wx.onMenuShareTimeline(shareData);
    wx.onMenuShareQQ(shareData);
    wx.onMenuShareWeibo(shareData);
  });
  wx.error(function (res) {
    //alert(res.errMsg);
  });
</script>
  <script>
     $(function(){ 
        var width=$(window).width(); 
        if(width<480){     
                var len=$("div.article_content").find("div").length; 
                // console.log(len);              
                   if(len=="0"){                   
                     $(".foot").css("position","fixed").css("bottom","0").css("left","0").css("width","100%");
                   }                  
           }          
        })
  </script>
<!--公用底部-->
<include file="Index:footer" />
